#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
  int arr[2][3] = {
    {1, 2, 3},
    {4, 5, 6}
  };

  cout << "二维数组所占内存：" << sizeof(arr) << endl;
  cout << "二维数组第一行所占内存：" << sizeof(arr[0]) << endl;
  cout << "二维数组第一元素所占内存：" << sizeof(arr[0][0]) << endl;

  cout << "二位数组首地址为：" << (long)arr << endl;
  cout << "二位数组第一行首地址为：" << (long)arr[0] << endl;
  cout << "二位数组第二行首地址为：" << (long)arr[1] << endl;

  return 0;
}